﻿using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhy.MvvmBaseObject
{
    /// <summary>
    /// 消息订阅类 - 作用暂时未知
    /// </summary>
    public class EventMessage : PubSubEvent
    {
    }

    /// <summary>
    /// 有参消息订阅
    /// </summary>
    public class EventMessageArgs : PubSubEvent<object>
    {
    }

    /// <summary>
    /// 有参消息订阅
    /// </summary>
    public class EventMessageAction : PubSubEvent<EventAction>
    {
    }

    /// <summary>
    /// 指定参数的消息订阅
    /// </summary>
    public class EventMessageDataModel : PubSubEvent<DataModel>
    {
    }

    /// <summary>
    /// 定义一个委托消息事件-用于执行消息事件的后续动作
    /// </summary>
    public class EventAction
    {
        public Action<bool> ResultAction { get; set; }
    }
}
